import styles from './index.less';
import { Form, Input, Button, Checkbox,Space } from 'antd';
import { IndexModelState, ConnectRC, Loading, connect, Link} from 'umi';

interface PageProps {
  index: IndexModelState;
  loading: boolean;
}

const   IndexPage:ConnectRC<PageProps> = ({ index, dispatch })=> {
  return (
    <div className='box'>
      <h1 className={styles.title}>Page index</h1>
      <Link to="/finace">454545454</Link>
      <Link to="/test">test</Link>
      <Link to="/login">test</Link>
      <Button>你好</Button>
      <Link to="/promotion">你好吗</Link>
    </div>
  );
}


export default connect(
  ({ index, loading }: { index: IndexModelState; loading: Loading }) => ({
    index,
    loading: loading.models.index,
  }),
)(IndexPage);